import { connect } from 'dva';
import React from 'react';
import styles from "./styles.less";
function mapStateToProps({ baseModel }) {
    return {
        baseModel: baseModel
    };
  }
  @connect(mapStateToProps)
class NavigationBar extends React.Component {
  constructor(props) {
    super(props);
    this.state = {

    }
  }
  //渲染前调用
  componentWillMount() {
    
  }
  render() {
      let {menuName} = this.props.baseModel;
    return (
      <React.Fragment>
        <div className={styles.navigationBar}>
          <span>{menuName}</span>
        </div>

      </React.Fragment >
    );
  }

}
export default NavigationBar;